#!/bin/sh

: << !
  version: 0.0.1
  DOTO: 
      - 包的下载速度它慢
!

ABSPATH=$(cd "$(dirname "$0")";pwd);

PACKAGES_PATH="${ABSPATH}/packages";

JAVA_RPM_VRESION="jdk-8u281-linux-x64.rpm";
GIT_VERSION="git-2.30.1";

source $ABSPATH/env/bootstrap.sh;
source $ABSPATH/env/ice.sh;
source $ABSPATH/env/web.sh;

usage() {
  print_all "Usage: $0 {web|ice}";
  exit 1;
}

case "$1" in
  web)
    init
    init_web
    install_java
    install_git
    install_node
    install_resin
    install_openresty
  ;;
  ice)
    init
    init_ice
    install_java
  ;;
  train)
    install_java
  ;;
  *)
    usage
  ;;
esac;
